package com.tom.websocket.pojo;

/**
 * @author zx
 * @date 2024年10月18日 10:35
 */
public class DataContent {
    /**
     * 动作类型
     */
    private Integer action;

    /**
     * 用户的聊天内容entity
     */
    private ChatMsg chatMsg;

    /**
     * 格式化后的聊天时间
     */
    private String chatTime;

    /**
     * 扩展字段
     */
    private String extend;

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public ChatMsg getChatMsg() {
        return chatMsg;
    }

    public void setChatMsg(ChatMsg chatMsg) {
        this.chatMsg = chatMsg;
    }

    public String getChatTime() {
        return chatTime;
    }

    public void setChatTime(String chatTime) {
        this.chatTime = chatTime;
    }

    public String getExtend() {
        return extend;
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }

    @Override
    public String toString() {
        return "DataContent{" +
                "action=" + action +
                ", chatMsg=" + chatMsg +
                ", chatTime='" + chatTime + '\'' +
                ", extend='" + extend + '\'' +
                '}';
    }
}
